[Q1] I would like to replace é by é for converting my text into HTML format. How to do it?
[R] It's enough to add the following line in your filter-file:
"é" "é"
[Q2] Now I would like to do exactly the opposite, it means replace é by é
how about it ?
[R] This time the following line:
"é" "é"
[Q3] OK. But sometimes my text editor cut a word into two for separating two lines as &ea-cute; how to correct it?
[R] Add the two following lines :
"&ea\ncute;" "é\n"
"&ea\rcute;" "é\r"
[Q4] How to replace %22 by " (quotation marks)?
[R] You must use the special character \" adding the following line:
"%22" "\""
[Q5] How to remouve all words beginning with def?
[R] Here some examples:
"def* " " "
"def*\r" "\r"
"def*\n" "\n"
"def*\t" "\t"
[Q6] How to remouve a line beginning with % (TeX comment)?
[R]
"%*\r" "\r"
"%*\n" "\n"
[Q7] How to remouve all mathmatical formulas in a TeX file?
[R]
"$$*$$" ""
"$*$" ""
[Q8] I would like to replace ef by EF, except ef in def?
[R] There is an astute method:
"def" "a random word"
"ef" "EF"
"a random word" "def"
[Q9] How to replace \alpha by æ (in a TeX file for example)?
[R] (Don’t forget that there is perhaps \alphabet in the text file)
"\\alpha " "æ "
"\\alpha\\" "æ\\"
"\\alpha;" "æ;"
"\\alpha)" "æ)"
"\\alpha," "æ,"
"\\alpha=" "æ="
"\\alpha\r" "æ\r"
"\\alpha\n" "æ\n"
"\\alpha\t" "æ\t"
[Q10] What is “Char Convert Only” option in the MakeFilterFile window ?
[R] Every PowerReplace Expression contains two strings separated by espace or by tabulation. If the first-string of each PRExpression is only one character as :
"d" "\alpha"
"e" "EF"
"a" "$$"
you can set “Char Convert Only” option on in the MakeFilterFile window. It lets PowerReplace convert much more rapidly.